<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1>index page</h1>
<form action="/employee" method="post">
    <input type="hidden" name="action" value="sign_in">
    <input type="number" name="id" placeholder="ID" required>
    <br>
    <input type="password" name="password" placeholder="PASSWORD" required value="123">
    <br>
    <input type="submit" value="Sign in">
    <a href="sign_up.jsp">Sign up</a>
</form>
<h1 style="color: #0f5132;">${requestScope.message}</h1>
<p style="color: #842029;">${requestScope.error}</p>
<%
    application.setAttribute("application-key", "application-value");
    out.print(application.getAttribute("application-key"));
    out.print("<br>");
    session.setAttribute("session-key", "session-value");
    out.print(session.getAttribute("session-key"));
    out.print("<br>");
    request.setAttribute("request-key", "request-value");
    out.print(request.getAttribute("request-key"));
    out.print("<br>");
    pageContext.setAttribute("page-key", "page-value");
    out.print(pageContext.getAttribute("page-key"));
%>
</body>
</html>